import { Typography } from 'antd';

export const ErrorBox = ({ error }: { error: { message: string } }) => {
  if (error.message) {
    return <Typography.Text type={'danger'}>{error.message}</Typography.Text>;
  }
  return null;
};
